package com.guigu.www.controller;


import com.guigu.www.pojo.TQuestionBank;
import com.guigu.www.service.TQuestionBankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * <p>
 * 题库表 前端控制器
 * </p>
 *
 * @author yb
 * @since 2021-06-18
 */
@RestController
@CrossOrigin
public class TQuestionBankController {

    @Autowired
    private TQuestionBankService service;

    @PostMapping("seltqbank")
    public List<TQuestionBank> seltqbank(@RequestBody TQuestionBank tQuestionBank){

       return service.seltqbank(tQuestionBank);
    }

}

